﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class LevelLoadedWipeIn : MonoBehaviour 
{

	private Animator anim;

	void Start () 
	{
		anim = GetComponent<Animator>();
		anim.Play("WipeEffectA");
	}

	void Update()
	{
		if(anim.GetCurrentAnimatorStateInfo(0).normalizedTime > 1)
		{
			gameObject.SetActive(false);
		}
	}

}
